home *** CD-ROM | disk | FTP | other *** search
/ The Big Day - Work Smarter - Learn How / The Big Day - Work Smarter - Learn How (Microsoft).BIN / Certification / Microsoft Office User Specialist (MOUS) Certify Your Productivit / navigation.js < prev    next >
Text File  |  2000-05-23  |  8KB  |  186 lines

  1.  
  2.  
  3.  
  4. function buildNavigation(PageIDStr)
  5. {
  6.     var ID = PageIDStr.toUpperCase();
  7.  
  8.     // News Heading
  9.     if (ID == "BUSINESS")
  10.         setHeadlineTitle("News for the Business User");
  11.     else if (ID == "EMPLOYMENT")
  12.         setHeadlineTitle("News for Employment Organizations");
  13.     else if (ID == "EDUCATION")
  14.         setHeadlineTitle("News for the Educator");
  15.     else if (ID == "IT")
  16.         setHeadlineTitle("News for the IT Professional");
  17.     else if (ID == "USER")
  18.         setHeadlineTitle("News for the Home User");
  19.  
  20.     // Homepage links
  21.         if (ID == "ALL" || 
  22.         ID == "BUSINESS" || 
  23.         ID == "EMPLOYMENT" || 
  24.         ID == "EDUCATION" || 
  25.         ID == "IT" ||
  26.         ID == "USER")
  27.     {
  28.     //setHomePageLinkTitle("See page customized for:");
  29.     addHomePageLink("All",             "/",    (ID=="ALL"?    true : false));
  30.     addHomePageLink("Corporations",        "/testing/corp.htm",    (ID=="BUSINESS"? true : false));
  31.     addHomePageLink("Staffing Agencies",      "/testing/staffing.htm",    (ID=="EMPLOYMENT"? true : false));
  32.     addHomePageLink("Academic Institutions",       "/testing/academic.htm",    (ID=="EDUCATION"? true : false));
  33.     addHomePageLink("Training Organizations", "/testing/it.htm",    (ID=="IT"? true : false));
  34.     addHomePageLink("End Users",       "/program/MOUS_whatis.htm",    (ID=="USER"? true : false));
  35.     }
  36.     
  37.     
  38.     // Category links
  39.     if (ID == "ALL" || 
  40.         ID == "BUSINESS" || 
  41.         ID == "EMPLOYMENT" || 
  42.         ID == "EDUCATION" || 
  43.         ID == "IT" ||
  44.         ID == "USER")
  45.     {
  46.         addCategory("General", "General Information", (ID!="ALL"? true : true));
  47.         addCategoryLink("General", "What is MOUS?", "/program/MOUS_whatis.htm");
  48.         addCategoryLink("General", "Exam Information", "/program/examinfo.htm");
  49.         addCategoryLink("General", "Press Room", "/program/MOUS_press.htm");
  50.         addCategoryLink("General", "Newsletter", "/newsletter/");
  51.         addCategoryLink("General", "Success Stories", "/program/mous_benefits.htm");
  52.         addCategoryLink("General", "Events", "/events/mous_events.htm");
  53.         //addCategoryLink("General", "Promotions", "/promotions/default.asp");
  54.     
  55.     }
  56.     if (ID == "ALL" || 
  57.         ID == "BUSINESS" || 
  58.         ID == "EMPLOYMENT" || 
  59.         ID == "EDUCATION" || 
  60.         ID == "IT" ||
  61.         ID == "USER")
  62.     {
  63.         addCategory("Prepare", "Prepare for Exams", (ID!="ALL"? true : true));
  64.         addCategoryLink("Prepare", "How to Prepare", "/program/steps/step1.htm");
  65.         addCategoryLink("Prepare", "Exam Demos", "/tests/practice.htm");
  66.         addCategoryLink("Prepare", "Locate Testing Centers", "/testing/locator.asp");
  67.         addCategoryLink("Prepare", "Locate Study Materials", "/courseware/locate.asp");
  68.         //addCategoryLink("Prepare", "Locate Training Centers", "/training/locate.asp");
  69.     }
  70.     if (ID == "ALL" || 
  71.         ID == "BUSINESS" || 
  72.         ID == "EMPLOYMENT" || 
  73.         ID == "EDUCATION" || 
  74.         ID == "IT" ||
  75.         ID == "USER")
  76.     {
  77.         //addCategory("center", "Business Center",(ID!="ALL"? true : true));
  78.         //addCategory("center", "MOUS Business Center",(ID!="ALL"? true : true));
  79.         //addCategoryLink("center", "ATC Business Center", "/testing/locator.asp");
  80.         //addCategoryLink("center", "ICV Business Center", "/courseware/area.asp");
  81.         //addCategoryLink("center", "Training Centers", "/training/area.asp");
  82.         //addCategoryLink("center", "MOUS Store", "/store");
  83.         //addCategoryLink("center", "ATC Support", "/techsupport/support_front.htm");
  84.     }
  85.     if (ID == "ALL" || 
  86.         ID == "BUSINESS" || 
  87.         ID == "EMPLOYMENT" || 
  88.         ID == "EDUCATION" || 
  89.         ID == "IT" ||
  90.         ID == "USER")
  91.     {
  92.         addCategory("Partner", "Partnering", (ID!="ALL"? true : true));
  93.         addCategoryLink("Partner", "Testing Centers", "/testing/types.asp");
  94.         addCategoryLink("Partner", "Courseware Providers", "/courseware/icv.htm");
  95.         addCategoryLink("Partner", "Instructors", "/instructors/default.htm");
  96.         addCategoryLink("Partner", "Order Exams", "https://www.nivonet.com/testing/area.asp");
  97.         addCategoryLink("Partner", "Apply", "http://www.nivonet.com/testing/apply.asp");
  98.         
  99.         //addCategoryLink("Partner", "Training Centers", "/training/apply.asp");
  100.         //addCategoryLink("Partner", "MOUS Trainers", "/trainer/apply.asp");
  101.     }
  102.  
  103. // MAIN NAV PROMO IMAGE
  104.     if (ID == "ALL")
  105.     {
  106.         setTopLinkTitle("<img src='/images/proj2klg.gif' width='117' height='26'border='0' alt='MS Project MOUS Exams'>");
  107.         addTopLink("<b>New MS Project<br> MOUS Certification!</b><p>", "../MSProject/");
  108.     }
  109.     
  110. // PRACTICE TEST DEMO IMAGE
  111.     if (ID == "ALL")
  112.     {
  113.         setTopLinkTitle("<img src='/images/demo.gif' width='25' height='26'border='0' alt='MOUS Practice tests'>");
  114.         addTopLink("<b>Practice Tests for MOUS by STS</b> <br><img src='/images/free.gif'align='left' border='0' alt='MOUS Practice test Demo'>Download free demos!", "/tests/sts.htm");
  115.     }
  116.     
  117.         // INTERNATIONAL LINKS
  118.         
  119.         
  120.         if (ID == "ESPANOL")
  121.     {
  122.         addCategory("info", "Información General", (ID!="ALL"? true : false));
  123.         addCategoryLink("info", "┐Qué es MOUS?", "/intl/span/mous_whatis.htm");
  124.         addCategoryLink("info", "Exámenes disponibles ", "/intl/span/mous_charts.htm");
  125.     }
  126.  
  127.         if (ID == "ESPANOL")
  128.     {
  129.         addCategory("prepare", "Prepárese para el examen", (ID!="ALL"? true : false));
  130.         addCategoryLink("prepare", "Pasos para la preparación", "/intl/span/mous_span_step1.htm");
  131.         addCategoryLink("prepare", "Ubique los Centros de Prueba", "/testing/locator.asp");
  132.         addCategoryLink("prepare", "Ubique los Materiales de Estudio", "/courseware/locate.asp");
  133.     }
  134.     
  135.     if (ID == "BRASIL")
  136.     {
  137.         addCategory("info", "Informações gerais", (ID!="ALL"? true : false));
  138.         addCategoryLink("info", "O que é o MOUS?", "/intl/brasil/mous_whatis.htm");
  139.         addCategoryLink("info", "Exames disponíveis", "/intl/brasil/mous_charts.htm");
  140.     }
  141.     
  142.         
  143.         if (ID == "BRASIL")
  144.     {
  145.         addCategory("prepare", "Preparação para exames", (ID!="ALL"? true : false));
  146.         addCategoryLink("prepare", "Preparação passo a passo ", "/intl/brasil/mous_brasil_step1.htm");
  147.         addCategoryLink("prepare", "Localizar um Centro <br>Autorizado de Testes", "/testing/locator.asp");
  148.         addCategoryLink("prepare", "Localizar Material de Estudo", "/courseware/locate.asp");
  149.     }
  150.     
  151.     
  152.     
  153.     if (ID == "FRENCH")
  154.     {
  155.         addCategory("info", "Informations générales :", (ID!="ALL"? true : false));
  156.         addCategoryLink("info", "Qu'est-ce que le programme?", "/intl/french/mous_whatis.htm");
  157.         addCategoryLink("info", "Examens disponibles ", "/intl/french/mous_charts.htm");
  158.         
  159.     }
  160.     
  161.         if (ID == "FRENCH")
  162.     {
  163.         addCategory("prepare", "Préparation aux examens", (ID!="ALL"? true : false));
  164.         addCategoryLink("prepare", "Préparation, étape par étape", "/intl/french/mous_french_step1.htm");
  165.         addCategoryLink("prepare", "Localiser un centre de test agréé", "/intl/french/mous_french_step1.htm");
  166.         //addCategoryLink("prepare", "Localiser un centre de test agr", "/testing/locator.asp");
  167.         addCategoryLink("prepare", " Obtenir le matériel d'étude", "/courseware/locate.asp");
  168.     }
  169.     
  170.     if (ID == "GERMAN")
  171.     {
  172.         addCategory("info", "Allgemeine Infos", (ID!="ALL"? true : false));
  173.         addCategoryLink("info", "Was ist MOUS?", "/intl/german/mous_whatis.htm");
  174.         addCategoryLink("info", "M÷gliche Prüfungen ", "/intl/german/mous_charts.htm");
  175.     }
  176.     
  177.         
  178.         if (ID == "GERMAN")
  179.     {
  180.         addCategory("prepare", "Vorbereitung", (ID!="ALL"? true : false));
  181.         addCategoryLink("prepare", "Schrittweise Vorbereitung ", "/intl/german/step1.htm");
  182.         addCategoryLink("prepare", "Testzentren", "/testing/locator.asp");
  183.         addCategoryLink("prepare", "Lehrmaterial", "/courseware/locate.asp");
  184.     }
  185.  
  186. }